home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-04-30 | 6.3 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Apr 30 16:19:13 1993, modified Fri Apr 30 16:19:13 1993, creator Think C, type ASCII, 5716 bytes "MyOpenComponent.c" , at 0x16d4 402 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 4d 79 4f 70 65 6e | 43 6f 6d 70 6f 6e 65 6e |..MyOpen|Componen|
|00000010| 74 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |t.c.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 16 54 00 | 00 01 92 a8 07 3a 41 a8 |......T.|.....:A.|
|00000060| 07 3a 41 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.:A.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7d 67 00 00 |........|....}g..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 43 6f 6d 70 6f 6e |#include| "Compon|
|00000090| 65 6e 74 44 61 74 61 2e | 68 22 0d 23 69 6e 63 6c |entData.|h".#incl|
|000000a0| 75 64 65 20 22 4d 79 4f | 70 65 6e 43 6f 6d 70 6f |ude "MyO|penCompo|
|000000b0| 6e 65 6e 74 2e 68 22 0d | 0d 70 61 73 63 61 6c 20 |nent.h".|.pascal |
|000000c0| 43 6f 6d 70 6f 6e 65 6e | 74 52 65 73 75 6c 74 20 |Componen|tResult |
|000000d0| 4d 79 4f 70 65 6e 43 6f | 6d 70 6f 6e 65 6e 74 28 |MyOpenCo|mponent(|
|000000e0| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|000000f0| 65 20 73 65 6c 66 29 0d | 7b 0d 43 6f 6d 70 6f 6e |e self).|{.Compon|
|00000100| 65 6e 74 52 65 73 75 6c | 74 09 72 65 73 75 6c 74 |entResul|t.result|
|00000110| 20 3d 20 30 3b 09 2f 2f | 20 4d 75 73 74 20 62 65 | = 0;.//| Must be|
|00000120| 20 30 20 66 6f 72 20 52 | 65 67 69 73 74 65 72 43 | 0 for R|egisterC|
|00000130| 6f 6d 70 6f 6e 65 6e 74 | 0d 50 72 69 76 61 74 65 |omponent|.Private|
|00000140| 47 6c 6f 62 61 6c 73 09 | 2a 2a 73 74 6f 72 61 67 |Globals.|**storag|
|00000150| 65 3b 0d 53 68 61 72 65 | 64 47 6c 6f 62 61 6c 73 |e;.Share|dGlobals|
|00000160| 09 2a 6d 79 53 68 61 72 | 65 64 47 6c 6f 62 61 6c |.*myShar|edGlobal|
|00000170| 73 50 74 72 3b 0d 0d 69 | 66 20 28 73 74 6f 72 61 |sPtr;..i|f (stora|
|00000180| 67 65 20 3d 20 28 50 72 | 69 76 61 74 65 47 6c 6f |ge = (Pr|ivateGlo|
|00000190| 62 61 6c 73 20 2a 2a 29 | 20 4e 65 77 48 61 6e 64 |bals **)| NewHand|
|000001a0| 6c 65 43 6c 65 61 72 28 | 20 73 69 7a 65 6f 66 28 |leClear(| sizeof(|
|000001b0| 50 72 69 76 61 74 65 47 | 6c 6f 62 61 6c 73 29 20 |PrivateG|lobals) |
|000001c0| 29 29 0d 09 7b 0d 09 48 | 4c 6f 63 6b 28 73 74 6f |))..{..H|Lock(sto|
|000001d0| 72 61 67 65 29 3b 0d 09 | 0d 09 2f 2a 2a 2a 2a 2a |rage);..|../*****|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 09 |********|******..|
|00000200| 09 57 65 20 6e 65 65 64 | 20 73 65 6c 66 20 66 6f |.We need| self fo|
|00000210| 72 20 52 45 47 49 53 54 | 45 52 43 4f 4d 50 4f 4e |r REGIST|ERCOMPON|
|00000220| 45 4e 54 0d 09 09 53 65 | 74 20 73 74 6f 72 61 67 |ENT...Se|t storag|
|00000230| 65 20 42 45 46 4f 52 45 | 20 63 61 6c 6c 69 6e 67 |e BEFORE| calling|
|00000240| 20 43 6f 6d 70 6f 6e 65 | 6e 74 53 65 74 54 61 72 | Compone|ntSetTar|
|00000250| 67 65 74 20 61 6e 64 20 | 0d 09 09 09 52 65 67 69 |get and |....Regi|
|00000260| 73 74 65 72 43 6f 6d 70 | 6f 6e 65 6e 74 09 0d 09 |sterComp|onent...|
|00000270| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000280| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000290| 2a 2a 2a 2f 09 0d 09 28 | 2a 73 74 6f 72 61 67 65 |***/...(|*storage|
|000002a0| 29 2d 3e 73 65 6c 66 20 | 3d 20 73 65 6c 66 3b 0d |)->self |= self;.|
|000002b0| 09 53 65 74 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 73 |.SetComp|onentIns|
|000002c0| 74 61 6e 63 65 53 74 6f | 72 61 67 65 20 28 73 65 |tanceSto|rage (se|
|000002d0| 6c 66 2c 20 28 48 61 6e | 64 6c 65 29 20 73 74 6f |lf, (Han|dle) sto|
|000002e0| 72 61 67 65 29 3b 09 0d | 0d 09 2f 2a 2a 2a 2a 2a |rage);..|../*****|
|000002f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000300| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00000310| 09 09 49 66 20 77 65 20 | 68 61 76 65 20 67 6c 6f |..If we |have glo|
|00000320| 62 61 6c 20 73 74 6f 72 | 61 67 65 2c 20 77 65 20 |bal stor|age, we |
|00000330| 68 61 76 65 20 72 65 67 | 69 73 74 65 72 65 64 2c |have reg|istered,|
|00000340| 20 61 6e 64 20 67 72 61 | 62 62 65 64 0d 09 09 74 | and gra|bbed...t|
|00000350| 68 65 20 62 61 73 65 20 | 63 6f 6d 70 6f 6e 65 6e |he base |componen|
|00000360| 74 2e 20 57 65 20 6e 6f | 77 20 6e 65 65 64 20 74 |t. We no|w need t|
|00000370| 6f 20 6f 70 65 6e 20 74 | 68 65 20 62 61 73 65 20 |o open t|he base |
|00000380| 63 6f 6d 70 6f 6e 65 6e | 74 2c 20 0d 09 09 61 6e |componen|t, ...an|
|00000390| 64 20 74 61 72 67 65 74 | 20 69 74 2e 49 66 20 6e |d target| it.If n|
|000003a0| 6f 20 67 6c 6f 62 61 6c | 20 73 74 6f 72 61 67 65 |o global| storage|
|000003b0| 2c 20 77 65 20 64 6f 20 | 6e 6f 74 68 69 6e 67 20 |, we do |nothing |
|000003c0| 6d 6f 72 65 0d 09 09 61 | 6e 64 20 77 61 69 74 20 |more...a|nd wait |
|000003d0| 66 6f 72 20 74 68 65 20 | 72 65 67 69 73 74 65 72 |for the |register|
|000003e0| 20 63 61 6c 6c 2e 0d 09 | 2a 2a 2a 2a 2a 2a 2a 2a | call...|********|
|000003f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000400| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 09 0d 09 6d |********|***/...m|
|00000410| 79 53 68 61 72 65 64 47 | 6c 6f 62 61 6c 73 50 74 |ySharedG|lobalsPt|
|00000420| 72 20 3d 20 47 65 74 43 | 6f 6d 70 6f 6e 65 6e 74 |r = GetC|omponent|
|00000430| 47 6c 6f 62 61 6c 73 28 | 73 74 6f 72 61 67 65 29 |Globals(|storage)|
|00000440| 3b 0d 09 69 66 20 28 6d | 79 53 68 61 72 65 64 47 |;..if (m|ySharedG|
|00000450| 6c 6f 62 61 6c 73 50 74 | 72 29 09 09 09 2f 2f 20 |lobalsPt|r)...// |
|00000460| 44 69 64 20 77 65 20 63 | 61 6c 6c 20 52 45 47 49 |Did we c|all REGI|
|00000470| 53 54 45 52 43 4f 4d 50 | 4f 4e 45 4e 54 3f 0d 09 |STERCOMP|ONENT?..|
|00000480| 09 7b 0d 09 09 2f 2a 20 | 44 6f 20 74 68 65 73 65 |.{.../* |Do these|
|00000490| 20 72 6f 75 74 69 6e 65 | 73 20 6f 6e 63 65 20 66 | routine|s once f|
|000004a0| 6f 72 20 61 6c 6c 20 69 | 6e 73 74 61 6e 63 65 73 |or all i|nstances|
|000004b0| 2e 20 57 65 20 63 68 65 | 63 6b 20 66 6f 72 20 61 |. We che|ck for a|
|000004c0| 20 30 20 64 65 6c 65 67 | 61 74 65 43 6f 6d 70 6f | 0 deleg|ateCompo|
|000004d0| 6e 65 6e 74 2c 0d 09 09 | 09 61 6e 64 20 74 68 65 |nent,...|.and the|
|000004e0| 6e 20 77 65 20 66 69 6c | 6c 20 69 74 20 75 70 20 |n we fil|l it up |
|000004f0| 2a 2f 0d 09 09 69 66 20 | 28 21 6d 79 53 68 61 72 |*/...if |(!myShar|
|00000500| 65 64 47 6c 6f 62 61 6c | 73 50 74 72 2d 3e 64 65 |edGlobal|sPtr->de|
|00000510| 6c 65 67 61 74 65 43 6f | 6d 70 6f 6e 65 6e 74 29 |legateCo|mponent)|
|00000520| 0d 09 09 09 7b 0d 09 09 | 09 69 66 20 28 20 51 75 |....{...|.if ( Qu|
|00000530| 69 63 6b 54 69 6d 65 41 | 76 61 69 6c 61 62 6c 65 |ickTimeA|vailable|
|00000540| 28 29 20 26 26 20 53 70 | 65 65 63 68 41 76 61 69 |() && Sp|eechAvai|
|00000550| 6c 61 62 6c 65 28 29 20 | 29 0d 09 09 09 09 7b 0d |lable() |).....{.|
|00000560| 09 09 09 09 43 6f 6d 70 | 6f 6e 65 6e 74 20 64 65 |....Comp|onent de|
|00000570| 6c 65 67 61 74 65 43 6f | 6d 70 6f 6e 65 6e 74 3d |legateCo|mponent=|
|00000580| 30 3b 0d 09 09 09 0d 09 | 09 09 09 64 65 6c 65 67 |0;......|...deleg|
|00000590| 61 74 65 43 6f 6d 70 6f | 6e 65 6e 74 20 3d 20 47 |ateCompo|nent = G|
|000005a0| 65 74 44 65 6c 65 67 61 | 74 65 43 6f 6d 70 6f 6e |etDelega|teCompon|
|000005b0| 65 6e 74 28 29 3b 09 0d | 09 09 09 09 69 66 20 28 |ent();..|....if (|
|000005c0| 64 65 6c 65 67 61 74 65 | 43 6f 6d 70 6f 6e 65 6e |delegate|Componen|
|000005d0| 74 29 0d 09 09 09 09 09 | 6d 79 53 68 61 72 65 64 |t)......|myShared|
|000005e0| 47 6c 6f 62 61 6c 73 50 | 74 72 2d 3e 64 65 6c 65 |GlobalsP|tr->dele|
|000005f0| 67 61 74 65 43 6f 6d 70 | 6f 6e 65 6e 74 20 3d 20 |gateComp|onent = |
|00000600| 43 61 70 74 75 72 65 43 | 6f 6d 70 6f 6e 65 6e 74 |CaptureC|omponent|
|00000610| 20 28 64 65 6c 65 67 61 | 74 65 43 6f 6d 70 6f 6e | (delega|teCompon|
|00000620| 65 6e 74 2c 20 20 28 43 | 6f 6d 70 6f 6e 65 6e 74 |ent, (C|omponent|
|00000630| 29 28 2a 73 74 6f 72 61 | 67 65 29 2d 3e 73 65 6c |)(*stora|ge)->sel|
|00000640| 66 29 3b 0d 09 09 09 09 | 7d 0d 09 09 09 65 6c 73 |f);.....|}....els|
|00000650| 65 20 0d 09 09 09 09 72 | 65 74 75 72 6e 20 2d 31 |e .....r|eturn -1|
|00000660| 3b 09 2f 2f 20 42 61 69 | 6c 3a 20 4e 6f 20 51 75 |;.// Bai|l: No Qu|
|00000670| 69 63 6b 54 69 6d 65 20 | 61 6e 64 2f 6f 72 20 53 |ickTime |and/or S|
|00000680| 70 65 65 63 68 20 4d 61 | 6e 61 67 65 72 0d 09 09 |peech Ma|nager...|
|00000690| 09 7d 0d 09 09 09 0d 09 | 09 28 2a 73 74 6f 72 61 |.}......|.(*stora|
|000006a0| 67 65 29 2d 3e 64 65 6c | 65 67 61 74 65 20 3d 20 |ge)->del|egate = |
|000006b0| 4f 70 65 6e 43 6f 6d 70 | 6f 6e 65 6e 74 20 28 6d |OpenComp|onent (m|
|000006c0| 79 53 68 61 72 65 64 47 | 6c 6f 62 61 6c 73 50 74 |ySharedG|lobalsPt|
|000006d0| 72 2d 3e 64 65 6c 65 67 | 61 74 65 43 6f 6d 70 6f |r->deleg|ateCompo|
|000006e0| 6e 65 6e 74 29 3b 0d 09 | 09 72 65 73 75 6c 74 20 |nent);..|.result |
|000006f0| 3d 20 43 6f 6d 70 6f 6e | 65 6e 74 53 65 74 54 61 |= Compon|entSetTa|
|00000700| 72 67 65 74 20 28 28 2a | 73 74 6f 72 61 67 65 29 |rget ((*|storage)|
|00000710| 2d 3e 73 65 6c 66 2c 20 | 28 2a 73 74 6f 72 61 67 |->self, |(*storag|
|00000720| 65 29 2d 3e 73 65 6c 66 | 29 3b 0d 09 09 09 0d 09 |e)->self|);......|
|00000730| 09 69 66 20 28 28 2a 73 | 74 6f 72 61 67 65 29 2d |.if ((*s|torage)-|
|00000740| 3e 64 65 6c 65 67 61 74 | 65 29 0d 09 09 09 7b 09 |>delegat|e)....{.|
|00000750| 0d 09 09 09 4f 53 45 72 | 72 09 65 72 72 3b 09 09 |....OSEr|r.err;..|
|00000760| 0d 09 09 09 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..../***|********|
|00000770| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000780| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 09 09 09 09 49 66 |********|*.....If|
|00000790| 20 74 68 65 73 65 20 72 | 6f 75 74 69 6e 65 73 20 | these r|outines |
|000007a0| 66 61 69 6c 2c 20 77 65 | 20 64 6f 6e 27 74 20 63 |fail, we| don't c|
|000007b0| 61 72 65 0d 09 09 09 2a | 2a 2a 2a 2a 2a 2a 2a 2a |are....*|********|
|000007c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 09 0d 09 09 09 |********|**/.....|
|000007e0| 44 6f 53 65 74 54 54 53 | 28 73 74 6f 72 61 67 65 |DoSetTTS|(storage|
|000007f0| 29 3b 09 09 2f 2f 20 67 | 65 74 20 76 6f 69 63 65 |);..// g|et voice|
|00000800| 20 63 68 61 72 61 63 74 | 65 72 69 73 74 69 63 73 | charact|eristics|
|00000810| 0d 09 09 09 47 65 74 49 | 6e 73 74 61 6e 63 65 53 |....GetI|nstanceS|
|00000820| 70 65 65 63 68 43 68 61 | 6e 6e 65 6c 28 73 74 6f |peechCha|nnel(sto|
|00000830| 72 61 67 65 2c 6d 79 53 | 68 61 72 65 64 47 6c 6f |rage,myS|haredGlo|
|00000840| 62 61 6c 73 50 74 72 29 | 3b 0d 09 09 09 28 2a 73 |balsPtr)|;....(*s|
|00000850| 74 6f 72 61 67 65 29 2d | 3e 74 65 78 74 48 20 09 |torage)-|>textH .|
|00000860| 09 09 3d 20 4e 65 77 48 | 61 6e 64 6c 65 43 6c 65 |..= NewH|andleCle|
|00000870| 61 72 28 73 69 7a 65 6f | 66 28 48 61 6e 64 6c 65 |ar(sizeo|f(Handle|
|00000880| 29 29 3b 0d 09 09 09 28 | 2a 73 74 6f 72 61 67 65 |));....(|*storage|
|00000890| 29 2d 3e 74 72 61 6e 73 | 6c 61 74 65 64 54 65 78 |)->trans|latedTex|
|000008a0| 74 48 20 3d 20 4e 65 77 | 48 61 6e 64 6c 65 43 6c |tH = New|HandleCl|
|000008b0| 65 61 72 28 73 69 7a 65 | 6f 66 28 48 61 6e 64 6c |ear(size|of(Handl|
|000008c0| 65 29 29 3b 0d 09 09 09 | 7d 0d 09 09 7d 0d 09 7d |e));....|}...}..}|
|000008d0| 0d 09 0d 72 65 74 75 72 | 6e 20 28 72 65 73 75 6c |...retur|n (resul|
|000008e0| 74 29 3b 0d 7d 0d 0d 43 | 6f 6d 70 6f 6e 65 6e 74 |t);.}..C|omponent|
|000008f0| 20 47 65 74 44 65 6c 65 | 67 61 74 65 43 6f 6d 70 | GetDele|gateComp|
|00000900| 6f 6e 65 6e 74 28 76 6f | 69 64 29 0d 7b 0d 43 6f |onent(vo|id).{.Co|
|00000910| 6d 70 6f 6e 65 6e 74 44 | 65 73 63 72 69 70 74 69 |mponentD|escripti|
|00000920| 6f 6e 09 64 65 6c 65 67 | 61 74 65 44 65 73 63 3b |on.deleg|ateDesc;|
|00000930| 0d 43 6f 6d 70 6f 6e 65 | 6e 74 09 09 09 09 64 65 |.Compone|nt....de|
|00000940| 6c 65 67 61 74 65 43 6f | 6d 70 6f 6e 65 6e 74 3b |legateCo|mponent;|
|00000950| 0d 0d 64 65 6c 65 67 61 | 74 65 44 65 73 63 2e 63 |..delega|teDesc.c|
|00000960| 6f 6d 70 6f 6e 65 6e 74 | 54 79 70 65 20 09 09 09 |omponent|Type ...|
|00000970| 3d 20 6b 43 61 70 74 75 | 72 65 43 6f 6d 70 6f 6e |= kCaptu|reCompon|
|00000980| 65 6e 74 54 79 70 65 3b | 0d 64 65 6c 65 67 61 74 |entType;|.delegat|
|00000990| 65 44 65 73 63 2e 63 6f | 6d 70 6f 6e 65 6e 74 53 |eDesc.co|mponentS|
|000009a0| 75 62 54 79 70 65 20 09 | 09 3d 20 6b 43 61 70 74 |ubType .|.= kCapt|
|000009b0| 75 72 65 43 6f 6d 70 6f | 6e 65 6e 74 53 75 62 54 |ureCompo|nentSubT|
|000009c0| 79 70 65 3b 0d 64 65 6c | 65 67 61 74 65 44 65 73 |ype;.del|egateDes|
|000009d0| 63 2e 63 6f 6d 70 6f 6e | 65 6e 74 4d 61 6e 75 66 |c.compon|entManuf|
|000009e0| 61 63 74 75 72 65 72 20 | 09 3d 20 6b 43 61 70 74 |acturer |.= kCapt|
|000009f0| 75 72 65 43 6f 6d 70 6f | 6e 65 6e 74 4d 61 6e 75 |ureCompo|nentManu|
|00000a00| 66 61 63 74 75 72 65 72 | 3b 0d 64 65 6c 65 67 61 |facturer|;.delega|
|00000a10| 74 65 44 65 73 63 2e 63 | 6f 6d 70 6f 6e 65 6e 74 |teDesc.c|omponent|
|00000a20| 46 6c 61 67 73 20 09 09 | 3d 20 6b 43 61 70 74 75 |Flags ..|= kCaptu|
|00000a30| 72 65 43 6f 6d 70 6f 6e | 65 6e 74 46 6c 61 67 73 |reCompon|entFlags|
|00000a40| 3b 0d 64 65 6c 65 67 61 | 74 65 44 65 73 63 2e 63 |;.delega|teDesc.c|
|00000a50| 6f 6d 70 6f 6e 65 6e 74 | 46 6c 61 67 73 4d 61 73 |omponent|FlagsMas|
|00000a60| 6b 20 09 3d 20 6b 43 61 | 70 74 75 72 65 43 6f 6d |k .= kCa|ptureCom|
|00000a70| 70 6f 6e 65 6e 74 46 6c | 61 67 73 4d 61 73 6b 3b |ponentFl|agsMask;|
|00000a80| 0d 0d 64 65 6c 65 67 61 | 74 65 43 6f 6d 70 6f 6e |..delega|teCompon|
|00000a90| 65 6e 74 20 3d 20 46 69 | 6e 64 4e 65 78 74 43 6f |ent = Fi|ndNextCo|
|00000aa0| 6d 70 6f 6e 65 6e 74 20 | 28 6e 69 6c 2c 20 26 64 |mponent |(nil, &d|
|00000ab0| 65 6c 65 67 61 74 65 44 | 65 73 63 29 3b 0d 0d 72 |elegateD|esc);..r|
|00000ac0| 65 74 75 72 6e 20 64 65 | 6c 65 67 61 74 65 43 6f |eturn de|legateCo|
|00000ad0| 6d 70 6f 6e 65 6e 74 3b | 0d 7d 0d 0d 42 6f 6f 6c |mponent;|.}..Bool|
|00000ae0| 65 61 6e 20 51 75 69 63 | 6b 54 69 6d 65 41 76 61 |ean Quic|kTimeAva|
|00000af0| 69 6c 61 62 6c 65 28 76 | 6f 69 64 29 0d 7b 0d 4f |ilable(v|oid).{.O|
|00000b00| 53 45 72 72 09 65 72 72 | 3d 6e 6f 45 72 72 3b 0d |SErr.err|=noErr;.|
|00000b10| 6c 6f 6e 67 09 72 65 73 | 75 6c 74 3b 0d 0d 65 72 |long.res|ult;..er|
|00000b20| 72 20 3d 20 47 65 73 74 | 61 6c 74 28 67 65 73 74 |r = Gest|alt(gest|
|00000b30| 61 6c 74 51 75 69 63 6b | 54 69 6d 65 2c 26 72 65 |altQuick|Time,&re|
|00000b40| 73 75 6c 74 29 3b 0d 69 | 66 20 28 20 65 72 72 20 |sult);.i|f ( err |
|00000b50| 29 0d 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |)..retur|n false;|
|00000b60| 0d 65 6c 73 65 0d 09 72 | 65 74 75 72 6e 20 74 72 |.else..r|eturn tr|
|00000b70| 75 65 3b 0d 7d 0d 0d 42 | 6f 6f 6c 65 61 6e 20 53 |ue;.}..B|oolean S|
|00000b80| 70 65 65 63 68 41 76 61 | 69 6c 61 62 6c 65 28 76 |peechAva|ilable(v|
|00000b90| 6f 69 64 29 0d 7b 0d 4f | 53 45 72 72 09 65 72 72 |oid).{.O|SErr.err|
|00000ba0| 3d 6e 6f 45 72 72 3b 0d | 6c 6f 6e 67 09 72 65 73 |=noErr;.|long.res|
|00000bb0| 75 6c 74 3b 0d 0d 65 72 | 72 20 3d 20 47 65 73 74 |ult;..er|r = Gest|
|00000bc0| 61 6c 74 28 67 65 73 74 | 61 6c 74 53 70 65 65 63 |alt(gest|altSpeec|
|00000bd0| 68 41 74 74 72 2c 26 72 | 65 73 75 6c 74 29 3b 0d |hAttr,&r|esult);.|
|00000be0| 69 66 20 28 20 65 72 72 | 20 29 20 09 0d 09 72 65 |if ( err| ) ...re|
|00000bf0| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 65 6c 73 65 |turn fal|se;.else|
|00000c00| 0d 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 7d |..return| true;.}|
|00000c10| 0d 0d 43 6f 6d 70 6f 6e | 65 6e 74 52 65 73 75 6c |..Compon|entResul|
|00000c20| 74 20 44 6f 53 65 74 54 | 54 53 28 50 72 69 76 61 |t DoSetT|TS(Priva|
|00000c30| 74 65 47 6c 6f 62 61 6c | 73 20 2a 2a 73 74 6f 72 |teGlobal|s **stor|
|00000c40| 61 67 65 29 0d 7b 0d 43 | 6f 6d 70 6f 6e 65 6e 74 |age).{.C|omponent|
|00000c50| 20 09 09 09 09 74 74 73 | 43 6f 6d 70 6f 6e 65 6e | ....tts|Componen|
|00000c60| 74 3b 0d 43 6f 6d 70 6f | 6e 65 6e 74 49 6e 73 74 |t;.Compo|nentInst|
|00000c70| 61 6e 63 65 20 09 09 74 | 74 73 43 49 6e 73 74 61 |ance ..t|tsCInsta|
|00000c80| 6e 63 65 3b 0d 43 6f 6d | 70 6f 6e 65 6e 74 44 65 |nce;.Com|ponentDe|
|00000c90| 73 63 72 69 70 74 69 6f | 6e 20 09 74 74 73 44 65 |scriptio|n .ttsDe|
|00000ca0| 73 63 3b 0d 50 6f 69 6e | 74 20 09 09 09 09 09 77 |sc;.Poin|t .....w|
|00000cb0| 68 65 72 65 20 3d 20 7b | 30 2c 30 7d 3b 0d 4f 53 |here = {|0,0};.OS|
|00000cc0| 45 72 72 20 09 09 09 09 | 09 65 72 72 20 3d 20 63 |Err ....|.err = c|
|00000cd0| 6f 6d 70 6f 6e 65 6e 74 | 44 6f 6e 74 52 65 67 69 |omponent|DontRegi|
|00000ce0| 73 74 65 72 3b 0d 43 6f | 6d 70 6f 6e 65 6e 74 52 |ster;.Co|mponentR|
|00000cf0| 65 73 75 6c 74 09 09 09 | 72 65 73 75 6c 74 3d 2d |esult...|result=-|
|00000d00| 31 3b 0d 0d 74 74 73 44 | 65 73 63 2e 63 6f 6d 70 |1;..ttsD|esc.comp|
|00000d10| 6f 6e 65 6e 74 54 79 70 | 65 20 09 09 09 3d 20 73 |onentTyp|e ...= s|
|00000d20| 74 64 54 65 78 74 54 6f | 53 70 65 65 63 68 43 6f |tdTextTo|SpeechCo|
|00000d30| 6d 70 6f 6e 65 6e 74 54 | 79 70 65 3b 0d 74 74 73 |mponentT|ype;.tts|
|00000d40| 44 65 73 63 2e 63 6f 6d | 70 6f 6e 65 6e 74 53 75 |Desc.com|ponentSu|
|00000d50| 62 54 79 70 65 20 09 09 | 3d 20 30 3b 0d 74 74 73 |bType ..|= 0;.tts|
|00000d60| 44 65 73 63 2e 63 6f 6d | 70 6f 6e 65 6e 74 4d 61 |Desc.com|ponentMa|
|00000d70| 6e 75 66 61 63 74 75 72 | 65 72 20 09 3d 20 27 61 |nufactur|er .= 'a|
|00000d80| 70 70 6c 27 3b 0d 74 74 | 73 44 65 73 63 2e 63 6f |ppl';.tt|sDesc.co|
|00000d90| 6d 70 6f 6e 65 6e 74 46 | 6c 61 67 73 20 09 09 09 |mponentF|lags ...|
|00000da0| 3d 20 30 3b 0d 74 74 73 | 44 65 73 63 2e 63 6f 6d |= 0;.tts|Desc.com|
|00000db0| 70 6f 6e 65 6e 74 46 6c | 61 67 73 4d 61 73 6b 20 |ponentFl|agsMask |
|00000dc0| 09 09 3d 20 30 3b 0d 0d | 74 74 73 43 6f 6d 70 6f |..= 0;..|ttsCompo|
|00000dd0| 6e 65 6e 74 20 3d 20 46 | 69 6e 64 4e 65 78 74 43 |nent = F|indNextC|
|00000de0| 6f 6d 70 6f 6e 65 6e 74 | 28 6e 69 6c 2c 20 26 74 |omponent|(nil, &t|
|00000df0| 74 73 44 65 73 63 29 3b | 20 0d 0d 23 64 65 66 69 |tsDesc);| ..#defi|
|00000e00| 6e 65 20 6b 44 65 66 61 | 75 6c 74 56 6f 69 63 65 |ne kDefa|ultVoice|
|00000e10| 20 31 0d 47 65 74 49 6e | 64 56 6f 69 63 65 28 6b | 1.GetIn|dVoice(k|
|00000e20| 44 65 66 61 75 6c 74 56 | 6f 69 63 65 2c 26 28 28 |DefaultV|oice,&((|
|00000e30| 2a 73 74 6f 72 61 67 65 | 29 2d 3e 63 6f 6f 6c 54 |*storage|)->coolT|
|00000e40| 54 53 50 61 72 61 6d 73 | 2e 63 75 72 56 6f 69 63 |TSParams|.curVoic|
|00000e50| 65 2e 76 6f 69 63 65 29 | 29 3b 0d 0d 69 66 20 28 |e.voice)|);..if (|
|00000e60| 74 74 73 43 6f 6d 70 6f | 6e 65 6e 74 29 0d 09 7b |ttsCompo|nent)..{|
|00000e70| 0d 09 74 74 73 43 49 6e | 73 74 61 6e 63 65 20 09 |..ttsCIn|stance .|
|00000e80| 3d 20 4f 70 65 6e 43 6f | 6d 70 6f 6e 65 6e 74 28 |= OpenCo|mponent(|
|00000e90| 74 74 73 43 6f 6d 70 6f | 6e 65 6e 74 29 3b 0d 09 |ttsCompo|nent);..|
|00000ea0| 72 65 73 75 6c 74 20 09 | 09 09 3d 20 53 74 64 53 |result .|..= StdS|
|00000eb0| 70 65 65 63 68 44 69 61 | 6c 6f 67 28 74 74 73 43 |peechDia|log(ttsC|
|00000ec0| 49 6e 73 74 61 6e 63 65 | 2c 20 26 28 2a 73 74 6f |Instance|, &(*sto|
|00000ed0| 72 61 67 65 29 2d 3e 63 | 6f 6f 6c 54 54 53 50 61 |rage)->c|oolTTSPa|
|00000ee0| 72 61 6d 73 2c 20 26 77 | 68 65 72 65 29 3b 0d 09 |rams, &w|here);..|
|00000ef0| 65 72 72 20 09 09 09 3d | 20 43 6c 6f 73 65 43 6f |err ...=| CloseCo|
|00000f00| 6d 70 6f 6e 65 6e 74 28 | 74 74 73 43 49 6e 73 74 |mponent(|ttsCInst|
|00000f10| 61 6e 63 65 29 3b 0d 09 | 7d 0d 09 0d 72 65 74 75 |ance);..|}...retu|
|00000f20| 72 6e 20 72 65 73 75 6c | 74 3b 0d 7d 0d 0d 0d 43 |rn resul|t;.}...C|
|00000f30| 6f 6d 70 6f 6e 65 6e 74 | 52 65 73 75 6c 74 20 47 |omponent|Result G|
|00000f40| 65 74 49 6e 73 74 61 6e | 63 65 53 70 65 65 63 68 |etInstan|ceSpeech|
|00000f50| 43 68 61 6e 6e 65 6c 28 | 50 72 69 76 61 74 65 47 |Channel(|PrivateG|
|00000f60| 6c 6f 62 61 6c 73 20 2a | 2a 73 74 6f 72 61 67 65 |lobals *|*storage|
|00000f70| 2c 53 68 61 72 65 64 47 | 6c 6f 62 61 6c 73 09 2a |,SharedG|lobals.*|
|00000f80| 6d 79 53 68 61 72 65 64 | 47 6c 6f 62 61 6c 73 50 |myShared|GlobalsP|
|00000f90| 74 72 29 0d 7b 0d 4f 53 | 45 72 72 20 09 09 09 65 |tr).{.OS|Err ...e|
|00000fa0| 72 72 3d 6e 6f 45 72 72 | 3b 0d 0d 65 72 72 20 3d |rr=noErr|;..err =|
|00000fb0| 20 4e 65 77 53 70 65 65 | 63 68 43 68 61 6e 6e 65 | NewSpee|chChanne|
|00000fc0| 6c 28 26 28 2a 73 74 6f | 72 61 67 65 29 2d 3e 63 |l(&(*sto|rage)->c|
|00000fd0| 6f 6f 6c 54 54 53 50 61 | 72 61 6d 73 2e 63 75 72 |oolTTSPa|rams.cur|
|00000fe0| 56 6f 69 63 65 2e 76 6f | 69 63 65 2c 26 28 2a 73 |Voice.vo|ice,&(*s|
|00000ff0| 74 6f 72 61 67 65 29 2d | 3e 63 6f 6f 6c 53 70 65 |torage)-|>coolSpe|
|00001000| 65 63 68 43 68 61 6e 6e | 65 6c 29 3b 0d 69 66 20 |echChann|el);.if |
|00001010| 28 21 65 72 72 29 0d 09 | 7b 0d 09 2f 2f 20 20 57 |(!err)..|{..// W|
|00001020| 65 20 68 61 76 65 20 61 | 20 63 68 61 6e 6e 65 6c |e have a| channel|
|00001030| 3a 20 74 68 65 73 65 20 | 72 6f 75 74 69 6e 65 73 |: these |routines|
|00001040| 20 61 72 65 20 69 63 69 | 6e 67 2c 20 64 6f 6e 27 | are ici|ng, don'|
|00001050| 74 20 63 61 72 65 20 69 | 66 20 74 68 65 79 20 66 |t care i|f they f|
|00001060| 61 69 6c 0d 09 53 65 74 | 53 70 65 65 63 68 49 6e |ail..Set|SpeechIn|
|00001070| 66 6f 28 28 2a 73 74 6f | 72 61 67 65 29 2d 3e 63 |fo((*sto|rage)->c|
|00001080| 6f 6f 6c 53 70 65 65 63 | 68 43 68 61 6e 6e 65 6c |oolSpeec|hChannel|
|00001090| 2c 09 73 6f 52 65 66 43 | 6f 6e 2c 09 09 6d 79 53 |,.soRefC|on,..myS|
|000010a0| 68 61 72 65 64 47 6c 6f | 62 61 6c 73 50 74 72 29 |haredGlo|balsPtr)|
|000010b0| 3b 0d 09 53 65 74 53 70 | 65 65 63 68 49 6e 66 6f |;..SetSp|eechInfo|
|000010c0| 28 28 2a 73 74 6f 72 61 | 67 65 29 2d 3e 63 6f 6f |((*stora|ge)->coo|
|000010d0| 6c 53 70 65 65 63 68 43 | 68 61 6e 6e 65 6c 2c 20 |lSpeechC|hannel, |
|000010e0| 09 73 6f 52 61 74 65 2c | 20 09 09 26 28 2a 73 74 |.soRate,| ..&(*st|
|000010f0| 6f 72 61 67 65 29 2d 3e | 63 6f 6f 6c 54 54 53 50 |orage)->|coolTTSP|
|00001100| 61 72 61 6d 73 2e 72 61 | 74 65 29 3b 0d 09 53 65 |arams.ra|te);..Se|
|00001110| 74 53 70 65 65 63 68 49 | 6e 66 6f 28 28 2a 73 74 |tSpeechI|nfo((*st|
|00001120| 6f 72 61 67 65 29 2d 3e | 63 6f 6f 6c 53 70 65 65 |orage)->|coolSpee|
|00001130| 63 68 43 68 61 6e 6e 65 | 6c 2c 20 09 73 6f 50 69 |chChanne|l, .soPi|
|00001140| 74 63 68 4d 6f 64 2c 09 | 09 26 28 2a 73 74 6f 72 |tchMod,.|.&(*stor|
|00001150| 61 67 65 29 2d 3e 63 6f | 6f 6c 54 54 53 50 61 72 |age)->co|olTTSPar|
|00001160| 61 6d 73 2e 6d 6f 64 75 | 6c 61 74 69 6f 6e 29 3b |ams.modu|lation);|
|00001170| 0d 09 53 65 74 53 70 65 | 65 63 68 49 6e 66 6f 28 |..SetSpe|echInfo(|
|00001180| 28 2a 73 74 6f 72 61 67 | 65 29 2d 3e 63 6f 6f 6c |(*storag|e)->cool|
|00001190| 53 70 65 65 63 68 43 68 | 61 6e 6e 65 6c 2c 20 09 |SpeechCh|annel, .|
|000011a0| 73 6f 50 69 74 63 68 42 | 61 73 65 2c 20 09 26 28 |soPitchB|ase, .&(|
|000011b0| 2a 73 74 6f 72 61 67 65 | 29 2d 3e 63 6f 6f 6c 54 |*storage|)->coolT|
|000011c0| 54 53 50 61 72 61 6d 73 | 2e 70 69 74 63 68 29 3b |TSParams|.pitch);|
|000011d0| 0d 09 7d 0d 09 0d 72 65 | 74 75 72 6e 20 28 43 6f |..}...re|turn (Co|
|000011e0| 6d 70 6f 6e 65 6e 74 52 | 65 73 75 6c 74 29 20 65 |mponentR|esult) e|
|000011f0| 72 72 3b 0d 7d 0d 0d 0d | 43 6f 6d 70 6f 6e 65 6e |rr;.}...|Componen|
|00001200| 74 20 47 65 74 4d 79 4f | 72 69 67 69 6e 61 6c 28 |t GetMyO|riginal(|
|00001210| 50 72 69 76 61 74 65 47 | 6c 6f 62 61 6c 73 20 2a |PrivateG|lobals *|
|00001220| 2a 73 74 6f 72 61 67 65 | 29 0d 7b 0d 43 6f 6d 70 |*storage|).{.Comp|
|00001230| 6f 6e 65 6e 74 44 65 73 | 63 72 69 70 74 69 6f 6e |onentDes|cription|
|00001240| 09 6f 72 69 67 69 6e 61 | 6c 44 65 73 63 3b 0d 43 |.origina|lDesc;.C|
|00001250| 6f 6d 70 6f 6e 65 6e 74 | 09 09 09 09 6f 72 69 67 |omponent|....orig|
|00001260| 69 6e 61 6c 43 6f 6d 70 | 6f 6e 65 6e 74 3b 0d 43 |inalComp|onent;.C|
|00001270| 6f 6d 70 6f 6e 65 6e 74 | 52 65 73 75 6c 74 09 09 |omponent|Result..|
|00001280| 09 72 65 73 75 6c 74 3b | 0d 43 6f 6d 70 6f 6e 65 |.result;|.Compone|
|00001290| 6e 74 09 09 09 09 63 6c | 6f 6e 65 43 6f 6d 70 6f |nt....cl|oneCompo|
|000012a0| 6e 65 6e 74 3b 0d 0d 6f | 72 69 67 69 6e 61 6c 44 |nent;..o|riginalD|
|000012b0| 65 73 63 2e 63 6f 6d 70 | 6f 6e 65 6e 74 54 79 70 |esc.comp|onentTyp|
|000012c0| 65 20 09 09 09 3d 20 6b | 43 61 70 74 75 72 65 43 |e ...= k|CaptureC|
|000012d0| 6f 6d 70 6f 6e 65 6e 74 | 54 79 70 65 3b 0d 6f 72 |omponent|Type;.or|
|000012e0| 69 67 69 6e 61 6c 44 65 | 73 63 2e 63 6f 6d 70 6f |iginalDe|sc.compo|
|000012f0| 6e 65 6e 74 53 75 62 54 | 79 70 65 20 09 09 3d 20 |nentSubT|ype ..= |
|00001300| 6b 43 61 70 74 75 72 65 | 43 6f 6d 70 6f 6e 65 6e |kCapture|Componen|
|00001310| 74 53 75 62 54 79 70 65 | 3b 0d 6f 72 69 67 69 6e |tSubType|;.origin|
|00001320| 61 6c 44 65 73 63 2e 63 | 6f 6d 70 6f 6e 65 6e 74 |alDesc.c|omponent|
|00001330| 4d 61 6e 75 66 61 63 74 | 75 72 65 72 09 3d 20 6b |Manufact|urer.= k|
|00001340| 4d 79 4d 61 6e 75 66 61 | 63 74 75 72 65 72 3b 0d |MyManufa|cturer;.|
|00001350| 6f 72 69 67 69 6e 61 6c | 44 65 73 63 2e 63 6f 6d |original|Desc.com|
|00001360| 70 6f 6e 65 6e 74 46 6c | 61 67 73 20 09 09 3d 20 |ponentFl|ags ..= |
|00001370| 6b 43 61 70 74 75 72 65 | 43 6f 6d 70 6f 6e 65 6e |kCapture|Componen|
|00001380| 74 46 6c 61 67 73 3b 0d | 6f 72 69 67 69 6e 61 6c |tFlags;.|original|
|00001390| 44 65 73 63 2e 63 6f 6d | 70 6f 6e 65 6e 74 46 6c |Desc.com|ponentFl|
|000013a0| 61 67 73 4d 61 73 6b 20 | 09 3d 20 6b 43 61 70 74 |agsMask |.= kCapt|
|000013b0| 75 72 65 43 6f 6d 70 6f | 6e 65 6e 74 46 6c 61 67 |ureCompo|nentFlag|
|000013c0| 73 4d 61 73 6b 3b 0d 0d | 72 65 73 75 6c 74 20 3d |sMask;..|result =|
|000013d0| 20 47 65 74 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 66 | GetComp|onentInf|
|000013e0| 6f 20 28 28 43 6f 6d 70 | 6f 6e 65 6e 74 29 20 28 |o ((Comp|onent) (|
|000013f0| 2a 73 74 6f 72 61 67 65 | 29 2d 3e 73 65 6c 66 2c |*storage|)->self,|
|00001400| 20 26 6f 72 69 67 69 6e | 61 6c 44 65 73 63 2c 20 | &origin|alDesc, |
|00001410| 6e 69 6c 2c 20 6e 69 6c | 2c 20 6e 69 6c 29 3b 0d |nil, nil|, nil);.|
|00001420| 63 6c 6f 6e 65 43 6f 6d | 70 6f 6e 65 6e 74 20 3d |cloneCom|ponent =|
|00001430| 20 28 43 6f 6d 70 6f 6e | 65 6e 74 29 28 6f 72 69 | (Compon|ent)(ori|
|00001440| 67 69 6e 61 6c 44 65 73 | 63 2e 63 6f 6d 70 6f 6e |ginalDes|c.compon|
|00001450| 65 6e 74 46 6c 61 67 73 | 4d 61 73 6b 29 3b 0d 0d |entFlags|Mask);..|
|00001460| 64 6f 0d 09 7b 0d 09 6f | 72 69 67 69 6e 61 6c 43 |do..{..o|riginalC|
|00001470| 6f 6d 70 6f 6e 65 6e 74 | 20 3d 20 46 69 6e 64 4e |omponent| = FindN|
|00001480| 65 78 74 43 6f 6d 70 6f | 6e 65 6e 74 20 28 6e 69 |extCompo|nent (ni|
|00001490| 6c 2c 20 26 6f 72 69 67 | 69 6e 61 6c 44 65 73 63 |l, &orig|inalDesc|
|000014a0| 29 3b 0d 09 7d 09 0d 77 | 68 69 6c 65 20 28 20 6f |);..}..w|hile ( o|
|000014b0| 72 69 67 69 6e 61 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |riginalC|omponent|
|000014c0| 20 3d 3d 20 63 6c 6f 6e | 65 43 6f 6d 70 6f 6e 65 | == clon|eCompone|
|000014d0| 6e 74 20 29 3b 0d 0d 72 | 65 74 75 72 6e 20 6f 72 |nt );..r|eturn or|
|000014e0| 69 67 69 6e 61 6c 43 6f | 6d 70 6f 6e 65 6e 74 3b |iginalCo|mponent;|
|000014f0| 0d 7d 0d 0d 0d 53 68 61 | 72 65 64 47 6c 6f 62 61 |.}...Sha|redGloba|
|00001500| 6c 73 20 2a 47 65 74 43 | 6f 6d 70 6f 6e 65 6e 74 |ls *GetC|omponent|
|00001510| 47 6c 6f 62 61 6c 73 28 | 50 72 69 76 61 74 65 47 |Globals(|PrivateG|
|00001520| 6c 6f 62 61 6c 73 20 2a | 2a 73 74 6f 72 61 67 65 |lobals *|*storage|
|00001530| 29 0d 7b 0d 43 6f 6d 70 | 6f 6e 65 6e 74 09 09 6f |).{.Comp|onent..o|
|00001540| 72 69 67 69 6e 61 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |riginalC|omponent|
|00001550| 3b 0d 53 68 61 72 65 64 | 47 6c 6f 62 61 6c 73 20 |;.Shared|Globals |
|00001560| 09 2a 6d 79 53 68 61 72 | 65 64 47 6c 6f 62 61 6c |.*myShar|edGlobal|
|00001570| 73 50 74 72 3b 0d 0d 6d | 79 53 68 61 72 65 64 47 |sPtr;..m|ySharedG|
|00001580| 6c 6f 62 61 6c 73 50 74 | 72 20 3d 20 6e 69 6c 3b |lobalsPt|r = nil;|
|00001590| 0d 69 66 20 28 47 65 74 | 43 6f 6d 70 6f 6e 65 6e |.if (Get|Componen|
|000015a0| 74 49 6e 73 74 61 6e 63 | 65 41 35 28 28 2a 73 74 |tInstanc|eA5((*st|
|000015b0| 6f 72 61 67 65 29 2d 3e | 73 65 6c 66 29 29 09 09 |orage)->|self))..|
|000015c0| 2f 2f 20 62 65 65 6e 20 | 63 6c 6f 6e 65 64 0d 09 |// been |cloned..|
|000015d0| 7b 0d 09 6f 72 69 67 69 | 6e 61 6c 43 6f 6d 70 6f |{..origi|nalCompo|
|000015e0| 6e 65 6e 74 20 3d 20 47 | 65 74 4d 79 4f 72 69 67 |nent = G|etMyOrig|
|000015f0| 69 6e 61 6c 28 73 74 6f | 72 61 67 65 29 3b 0d 09 |inal(sto|rage);..|
|00001600| 6d 79 53 68 61 72 65 64 | 47 6c 6f 62 61 6c 73 50 |myShared|GlobalsP|
|00001610| 74 72 20 3d 20 28 53 68 | 61 72 65 64 47 6c 6f 62 |tr = (Sh|aredGlob|
|00001620| 61 6c 73 09 2a 29 20 47 | 65 74 43 6f 6d 70 6f 6e |als.*) G|etCompon|
|00001630| 65 6e 74 52 65 66 63 6f | 6e 28 20 6f 72 69 67 69 |entRefco|n( origi|
|00001640| 6e 61 6c 43 6f 6d 70 6f | 6e 65 6e 74 20 29 3b 0d |nalCompo|nent );.|
|00001650| 09 7d 0d 65 6c 73 65 0d | 09 6d 79 53 68 61 72 65 |.}.else.|.myShare|
|00001660| 64 47 6c 6f 62 61 6c 73 | 50 74 72 20 3d 20 28 53 |dGlobals|Ptr = (S|
|00001670| 68 61 72 65 64 47 6c 6f | 62 61 6c 73 09 2a 29 20 |haredGlo|bals.*) |
|00001680| 47 65 74 43 6f 6d 70 6f | 6e 65 6e 74 52 65 66 63 |GetCompo|nentRefc|
|00001690| 6f 6e 28 20 28 43 6f 6d | 70 6f 6e 65 6e 74 29 20 |on( (Com|ponent) |
|000016a0| 28 2a 73 74 6f 72 61 67 | 65 29 2d 3e 73 65 6c 66 |(*storag|e)->self|
|000016b0| 20 29 3b 0d 0d 72 65 74 | 75 72 6e 20 6d 79 53 68 | );..ret|urn mySh|
|000016c0| 61 72 65 64 47 6c 6f 62 | 61 6c 73 50 74 72 3b 0d |aredGlob|alsPtr;.|
|000016d0| 7d 0d 0d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 46 |.......L|...L...F|
|00001710| 00 00 04 41 09 44 6f 51 | 44 50 72 69 6e 74 02 00 |...A.DoQ|DPrint..|
|00001720| 00 00 54 45 58 54 50 4a | 4d 4d 01 00 01 00 00 c0 |..TEXTPJ|MM......|
|00001730| 11 4d 79 4f 70 65 6e 43 | 6f 6d 70 6f 6e 65 6e 74 |.MyOpenC|omponent|
|00001740| 2e 63 02 00 00 00 54 45 | 58 54 4b 41 48 4c 01 00 |.c....TE|XTKAHL..|
|00001750| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 a7 db bd ad 00 00 | 16 54 00 00 01 92 00 00 |........|.T......|
|00001780| 00 00 00 00 12 00 00 00 | 04 41 0c 44 6f 53 63 72 |........|.A.DoScr|
|00001790| 6f 6c 6c 42 61 63 6b 41 | 02 00 00 00 54 45 58 54 |ollBackA|....TEXT|
|000017a0| 50 4a 4d 4d 01 00 01 04 | 01 00 00 00 00 00 04 48 |PJMM....|.......H|
|000017b0| 00 00 00 00 03 9e 00 00 | 0a 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 a4 39 15 c9 | a4 3b 67 c5 00 00 00 00 |.....9..|.;g.....|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 f1 a9 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 12 00 |........|........|
|00001800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001820| 00 00 00 00 00 00 00 06 | 00 04 00 38 00 14 03 5c |........|...8...\|
|00001830| 02 7c 00 38 00 14 03 5c | 02 7c a7 fb 84 85 00 00 |.|.8...\|.|......|
|00001840| 08 7a 00 00 08 85 00 00 | 01 a4 01 00 00 00 01 00 |.z......|........|
|00001850| 00 00 01 4c 00 00 00 4c | 00 00 00 46 00 e8 8b f0 |...L...L|...F....|
|00001860| 17 82 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001870| 00 0a 03 ed 00 00 00 00 | 00 00 00 e8 8b 10 13 43 |........|.......C|
|00001880| 72 65 61 74 65 64 20 62 | 79 20 43 4d 61 73 74 65 |reated b|y CMaste|
|00001890| 72 aa 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+